<?php

class Kd_Html_Form_Hidden extends Kd_Html_Form_Element {

    public function  __construct() {
        parent::__construct();
        $this->templateName = 'form/hidden';
    }

    protected function renderReadonly(){
        return $this->renderEditable();
    }

    protected function renderEditable(){
        $this->setAttribute('type', 'hidden')
            ->setAttribute('id', $this->getId())
            ->setAttribute('name', $this->getName())
            ->setAttribute('value', $this->getValue());
        return '<input '.$this->getAttributeHtml().'/>';
    }
}